CC=gcc	

#CFLAGS=	 -Wall
CFLAGS=	
LFLAGS= 
SRC=	mb_code_test.c   
SRCDIR =.
APP=	mb_add
#STD= -std=gnu99
STD= -std=gnu99

INCL_DIR =
#compile for MICROBLAZE
CFLAGS += -Wshadow -O3 -ffast-math  -Wall -I. -I$(SRCDIR) $(STD) -fomit-frame-pointer -fno-tree-vectorize -DWORDS_BIGENDIAN

LDFLAGS= -lm


#CFLAGS+= $(INCL_DIR)


#sending files
SEND_FILE_DIR = .
SEND_FILES = mb_add.tar.gz
SEND_TARGET = et4074-24@ce-fpgahost01.et.tudelft.nl
SEND_TARGET_DIR =  ~
INCL_DIR =-Iincludes/


#.PRECIOUS: %.o %.s
all: $(APP) 
	
$(APP):	$(SRC) 
	$(CC)  $(CFLAGS) $(SRC) -o $@  
#	./$(APP)	


send: 
	scp $(SEND_FILE_DIR)/$(SEND_FILES) $(SEND_TARGET):$(SEND_TARGET_DIR)  

clean: 
	rm -rf *o $(APP)

